package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author zhanghao
 * @date 2021/4/9 17:04
 */
public interface AdChannelService extends IService<AdChannel> {
    //根据名称分页查询频道
    public ResponseResult findByNameAndPage(ChannelDto dto);

    //频道新增
    public ResponseResult insert(AdChannel adChannel);

    //频道修改
    public ResponseResult update(AdChannel adChannel);

    //频道删除
    public ResponseResult deleteById(Integer id);
}
